package com.by.controller;

import cn.hutool.core.util.RandomUtil;
import com.by.remote.api.StockRemoteClient;
import com.by.remote.dto.StockDto;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;
/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/2 19:14
 * @注释
 */
@RestController
public class StockRemoteController implements StockRemoteClient {
    @Override
    public Map query(int id) {
        Map map = new HashMap();
        map.put("num", UUID.randomUUID());
        map.put("stock", RandomUtil.randomInt());
        map.put("id", id);
        return map;
    }

    @Override
    public Map selectByLike(StockDto stockDto) {
        Map map=new HashMap();
        map.put("love","我爱学习Java");
        map.put("like",stockDto);
        return map;
    }
}
